﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using AUV5.Model;
using AUV5.Common;
using AUV5.BLL;
using System.IO;
using System.Text;

namespace AUV5.Web.Pages
{
    public partial class UserPhoto : PageBaseFrontend
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (base.IsVerified)
                {                    
                    tempUrl.Value = GetDirectoryOfDate(true);  //给临时目录赋值

                    hdSessionId.Value = base.Session.SessionID;

                    BindData();
                }
                else
                {
                    Response.Redirect(URL_INDEX);
                }
            }
        }

        #region##绑定数据
        /// <summary>
        /// 绑定数据
        /// 创建人：Wilson
        /// 创建时间：2011-11-21
        /// </summary>
        private void BindData()
        {
            imgCut.ImageUrl = base.VerifiedInfo.User.PhotoPath;
        }
        #endregion
    }
}